package com.example.event_resource_java.authority.server;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.event_resource_java.authority.dao.ErrorBookDO;
import com.example.event_resource_java.authority.dao.PaperDao.ItemBankDO;
import com.example.event_resource_java.commons.vo.ErrorBookVO.ErrorBookSubmitVO;
import com.example.event_resource_java.commons.vo.ErrorBookVO.ErrorBookVO;
import com.example.event_resource_java.commons.vo.ErrorBookVO.UserStatisticErrorBookVO;
import com.example.event_resource_java.commons.vo.ExamPaperVO;
import com.example.event_resource_java.commons.vo.ExaminationQuestionVO;
import com.example.event_resource_java.commons.vo.PaperDetailVo;

import java.util.List;

public interface ErrorBookService extends IService<ErrorBookDO> {

    /**
     * 错题教师统计查询
     * @param errorBookDO
     * @return ErrorBookDO
     */
    IPage<ErrorBookDO> teacherStatistic(ErrorBookDO errorBookDO);

    /**
     * 学生错题统计
     * @return UserStatisticErrorBookVO
     */
    List<UserStatisticErrorBookVO> userStatistic();

    /**
     *  查看答案
     * @return UserStatisticErrorBookVO
     */
    ExamPaperVO answer(Integer topicType);

    /**
     * 错题练习
     * @return UserStatisticErrorBookVO
     */
    PaperDetailVo practice(Integer topicType);

    /**
     * 错题练习交卷
     * @return List<ItemBankDO>
     */
    ExamPaperVO submit(ErrorBookSubmitVO errorBookSubmitVO);

}
